package com.batch.listener;

import org.springframework.batch.core.JobExecution;
import org.springframework.batch.core.JobExecutionListener;

/**
 * 自定义监听器
 */

public class JobListener1 implements JobExecutionListener {


    @Override
    public void beforeJob(JobExecution jobExecution) {
        System.out.println("----------beforeJobListener1------------");
    }

    @Override
    public void afterJob(JobExecution jobExecution) {
        System.out.println("----------afterJobListener1------------");

    }
}
